package com.wuzheng.wisgo.sanitation.cloud.service.plan.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.wuzheng.wisgo.sanitation.cloud.repository.entity.plan.JobPlanRoad;
import com.wuzheng.wisgo.sanitation.cloud.service.plan.JobPlanRoadService;
import com.wuzheng.wisgo.sanitation.framework.base.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author：hoipang
 * @date：Created in 2019-12-18
 * @description：道路作业计划与道路关联服务实现类
 * @modified By：
 * @version: 1.0
 */
@Service
public class JobPlanRoadServiceImpl extends BaseServiceImpl<JobPlanRoad> implements JobPlanRoadService {

    @Override
    public List<JobPlanRoad> list(List<String> roadIds) {
        EntityWrapper<JobPlanRoad> wrapper = new EntityWrapper<>();
        wrapper.eq("de_flag",false);
        wrapper.in("road_id", roadIds);
        List<JobPlanRoad> list = this.selectList(wrapper);
        return list;
    }
}
